import request from '@/utils/request'

/**
 *
 * @param {*} data 登录表单
 * @returns 登录请求结果
 */
export const login = (data) => request.post('/manager/login', data)

/**
 *
 * @param {*} key 随机数
 * @returns arrayBuffer
 */
export const getVerifyCode = (key) => request.get('/manager/captcha', { params: { key }, responseType: 'arraybuffer' })
